<?php $form = $this->beginWidget('CActiveForm', array('id' => 'site-form', 'enableAjaxValidation' => true)); ?>

<table cellspacing="1" cellpadding="4" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar"> <?php echo CHtml::activeLabel($model, 'title'); ?></div>
        <!-- tab bar -->
        <div id="tabbar-div">
          <ul>
            <li class="tab-back"><a href="<?php echo $this->createUrl('site/');?>">系统配置</a></li>
            <li class="tab-back"><a href="<?php echo $this->createUrl('site/video');?>">点播配置</a></li>
            <li class="tab-front"><a href="<?php echo $this->createUrl('site/user');?>">用户配置</a></li>
          </ul>
        </div>
        <!-- tab end -->
        <?php if($this->message):?>
        <span>
        <label class="success"><?php echo $this->message;?></label>
        </span>
        <?php endif;?>
        <table width="100%" cellpadding="4" cellspacing="1" class="tab">
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_user_register', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->radioButtonList($model, 'site_user_register', $model->getPlayList(), array('class' => 'radio', 'separator' => '')); ?> <?php echo $form->error($model, 'site_user_register'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_user_level', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->dropDownList($model, 'site_user_level', $model->getVideoLevel(), array('class' => 'radio', 'separator' => '')); ?> <?php echo $form->error($model, 'site_user_level'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_user_hidden_level', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->dropDownList($model, 'site_user_hidden_level', $model->getVideoLevel(), array('class' => 'radio', 'separator' => '')); ?> <?php echo $form->error($model, 'site_user_hidden_level'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_user_days', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_user_days'); ?> <?php echo $form->error($model, 'site_user_days'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_user_money', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_user_money'); ?> <?php echo $form->error($model, 'site_user_money'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_mailserver_host', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_mailserver_host'); ?> <?php echo $form->error($model, 'site_mailserver_host'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_mailserver_port', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_mailserver_port'); ?> <?php echo $form->error($model, 'site_mailserver_port'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_mailserver_sender', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_mailserver_sender'); ?> <?php echo $form->error($model, 'site_mailserver_sender'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_mailserver_username', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_mailserver_username'); ?> <?php echo $form->error($model, 'site_mailserver_username'); ?></td>
          </tr>
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_mailserver_password', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_mailserver_password'); ?> <?php echo $form->error($model, 'site_mailserver_password'); ?></td>
          </tr>
          <tr class="rows">
            <td></td>
            <td><?php echo CHtml::submitButton(Yii::t('app', '提 交'), array('class' => 'btn')); ?></td>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<?php $this->endWidget(); ?>
